﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
	xmlns:visualizationToolkit="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit" xmlns:System_Windows_Controls_DataVisualization_Charting_Primitives="clr-namespace:System.Windows.Controls.DataVisualization.Charting.Primitives;assembly=System.Windows.Controls.DataVisualization.Toolkit"
	x:Class="Faust.Andrew.MTG.DeckStatistics"
	x:Name="UserControl"
	d:DesignWidth="241" d:DesignHeight="443" BorderBrush="#FF574E4E">
	<UserControl.Resources >
	</UserControl.Resources>								
	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="0.50*"/>
			<RowDefinition Height="0.50*"/>
		</Grid.RowDefinitions>
		<StackPanel x:Name="LayoutCardCount" HorizontalAlignment="Center" Orientation="Horizontal" VerticalAlignment="Top">
			<Label Margin="0,0,2,0" Content="Total Cards:"/>
			<Label x:Name="lblTotalCards" Content=""/>
		</StackPanel>
		<chartingToolkit:Chart x:Name="chartColors" Title="Card Colors" Grid.Row="1" LegendTitle="Colors" Margin="5,0,5,5" Style="{DynamicResource ColorPieChartTemplate}">			
			<chartingToolkit:Chart.DataContext>
				<PointCollection>1,10 2,20 3,30 4,40</PointCollection>
			</chartingToolkit:Chart.DataContext>
			<chartingToolkit:PieSeries x:Name="cardColorSeries" Margin="0" BorderThickness="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsSelectionEnabled="True" DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}" OverridesDefaultStyle="False"/>
		</chartingToolkit:Chart>
		<chartingToolkit:Chart x:Name="chartTypes" Grid.Row="2" LegendTitle="Types" Margin="5,0,5,5" Width="{Binding ActualWidth, ElementName=chartColors, Mode=Default}" Title="Card Types" Style="{DynamicResource DeckStatPieTemplate}">
			<chartingToolkit:Chart.DataContext>
				<PointCollection>1,10 2,20 3,30 4,40</PointCollection>
			</chartingToolkit:Chart.DataContext>
			<chartingToolkit:PieSeries x:Name="cardTypeSeries" Margin="0" BorderThickness="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" DependentValuePath="Value" IndependentValuePath="Key" IsSelectionEnabled="True" ItemsSource="{Binding}" LegendItemStyle="{DynamicResource DeckStatLegendItemStyle}"/>
		</chartingToolkit:Chart>
	</Grid>
</UserControl>